package com.jie.component.validation.validator;

import java.lang.annotation.Annotation;

/**
 * 校验器接口
 * @param <T>
 */
public interface ConstraintValidator<T extends Annotation> {
    boolean isValid(Object value, T annotation);
    String getMessage(T annotation);
}